package com.xxgc.demo.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/*
 *
 *   @Author:SJY
 *   @Date: 2023/9/27-09-27-16:14
 *
 */
@Schema(name = "任务调度VO",description = "任务调度VO")
@Data
public class QuartzTaskVO {

    @NotNull(message = "Cron表达式不能为空")
    @Schema(description = "Cron表达式")
    private String cron;
    @NotNull(message = "触发器名称不能为空")
    @Schema(description = "触发器名称")
    private String triggerName;
    @NotNull(message = "触发器分组不能为空")
    @Schema(description = "触发器分组")
    private String triggerGroup;
    @NotNull(message = "任务名称不能为空")
    @Schema(description = "任务名称")
    private String jobName;
    @NotNull(message = "任务分组不能为空")
    @Schema(description = "任务分组")
    private String jobGroup;
    @NotNull(message = "执行任务对象地址不能为空")
    @Schema(description = "执行任务对象地址")
    private String jobClass;

}
